package com.zjcode.cdcer.service;


import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.GastroscopeDiagnosisInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = GastroscopeDiagnosisInfoServiceFallback.class)
public interface GastroscopeDiagnosisInfoService {

    @PostMapping("/cdcerserver/v1/gastroscopediagnosis/listAllByUser")
    JsonObj listAllByUser(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/gastroscopediagnosis/updateRecords")
    JsonObj updateRecords(@RequestBody PageData pageData);
}
